// 1. 导入
const fs = require('fs')

fs.writeFile('./files/2.txt', 'abcd', function(error) {
  console.log(error)
})
